angular.module('app').config(($stateProvider) => {

    $stateProvider.state('app.content', {
        url         : '/content',
        label       : 'Content',
        controller  : 'app.content',
        controllerAs: '$ctrl',
        templateUrl : 'view/app/content/content.html'
    });
}).controller('app.content', function () {
    var ctrl = this;
    ctrl.onScroll = function () {
        console.log('on scroll');
    };
    ctrl.onScrollComplete = function () {
        console.log('on scroll complete');
    };
});